package com.webwork.lims.transport.dataobject;

public class Car {
	
	/**
	 * 车牌号
	 */
	private String carNum;
	
	/**
	 * 所属区域
	 */
	private int zoneCode;
	
	/**
	 * 车辆类型
	 */
	private TransType type = TransType.NULL;
	
	/**
	 * 车辆状态
	 */
	private CarStatus status = CarStatus.NOSET;
	private Integer statusCode;

	
	
	public String getCarNum() {
		return carNum;
	}

	public void setCarNum(String carNum) {
		this.carNum = carNum;
	}

	public int getZoneCode() {
		return zoneCode;
	}

	public void setZoneCode(int zoneCode) {
		this.zoneCode = zoneCode;
	}

	public TransType getType() {
		return type;
	}

	public void setType(TransType type) {
		this.type = type;
	}

	public CarStatus getStatus() {
		return status;
	}

	public void setStatus(CarStatus status) {
		this.status = status;
	}
	
	public void setStatus(Integer status) {
		this.status = CarStatus.fromCode(status);
	}

	public Integer getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(Integer statusCode) {
		this.statusCode = statusCode;
	}
	
}
